package com.front.web.lvyou_specialty_front.util;

public enum OrderContentStatus {

    WZF("未支付",1),
    YZFW("已支付未发货",2),
    YZFY("已发货",3),
    TF("申请退款",4),
    YGQ("已过期",5),
    YTK("已退款",6);



    private Integer status;

    private String name;

    OrderContentStatus (String name, Integer status) {
        this.name = name;
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public String getName() {
        return name;
    }

    public static String getStatusByName(int status){
        for(OrderContentStatus item :  OrderContentStatus.values()){
            if(item.status == status){
                return item.name;
            }
        }
        return null;
    }
}
